package com.javasm.mingming.adminuser.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.javasm.mingming.adminuser.entity.AdminAuthority;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * (AdminAuthority)表数据库访问层
 *
 * @author makejava
 * @since 2025-01-15 11:04:13
 */
public interface AdminAuthorityDao extends BaseMapper<AdminAuthority> {

    @Select("select a.* from admin_authority a,rel_user_authority rel where a.id = rel.aid and rel.uid= #{uid}")
    List<AdminAuthority> selectListByUid(Long uid);
}

